<include file="theme/functions"/>
<include file="public@head"/>
</head>
<body>
<div class="layui-fluid wrap js-check-wrap" id="component-tabs">
    <div class="layui-row">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">数据管理</div>
                <div class="layui-card-body">
                    <div class="layui-tab">
                        <ul class="layui-tab-title">
                            <li><a href="{:url('theme/fileArrayData',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget])}">所有数据</a></li>
                            <heq name="item_index" value="">
                                <li class="layui-this"><a>添加数据</a></li>
                                <else/>
                                <li><a href="{:url('theme/fileArrayDataEdit',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget])}">添加数据</a></li>
                                <li class="layui-this"><a>编辑数据</a></li>
                            </heq>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <form method="post" class="js-ajax-form layui-form" action="{:url('theme/fileArrayDataEditPost',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget])}">
                                    {:_parse_vars($array_item,'item',2)}
                                    <div class="form-group" style="display: none;">
                                        <input type="hidden" name="item_index" value="{$item_index}">
                                        <button type="submit" class="layui-btn js-ajax-submit" id="submit-btn">保存</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<include file="theme/scripts"/>
</body>
</html>